//
//  Config.h
//  easystudy
//
//  Created by kane on 15/6/1.
//  Copyright (c) 2015年 kane. All rights reserved.
//

#ifndef easystudy_Config_h
#define easystudy_Config_h


#define IS_NightMode [[[NSUserDefaults standardUserDefaults] objectForKey:@"NightMode"] boolValue]
#define NetStatus [[[NSUserDefaults standardUserDefaults] objectForKey:@"NetworkState"] integerValue]
#define kChangeNightMode @"ChangeNightMode"
//配色
#define KKColor_Black_LightGary IS_NightMode?[UIColor colorWithHex:0xACACAC]:[UIColor blackColor]
#define KKColor_DarkGray_White  IS_NightMode?[UIColor colorWithHex:0x131518]:[UIColor whiteColor]
#define KKColor_DarkGray_Black  IS_NightMode?[UIColor blackColor]:[UIColor colorWithHex:0xDBDBDB]
#define KKColor_DarkWhite_Black IS_NightMode?[UIColor blackColor]:[UIColor colorWithHex:0xF2F2F2]
#define KKColor_White_Black  IS_NightMode?[UIColor whiteColor]:[UIColor blackColor]
#define KKColor_Black_White  IS_NightMode?[UIColor blackColor]:[UIColor whiteColor]
#define KKColor_BGColor_GrayToDarkgray IS_NightMode?[UIColor colorWithHex:0x0E1113]:[UIColor colorWithHex:0xF2F2F2]
#define KKColor_NavLineColor IS_NightMode?[UIColor colorWithHex:0x313131]:[UIColor colorWithHex:0xDBDBDB]
#define KKColor_White_Darkgray IS_NightMode?[UIColor colorWithHex:0x0E1113]:[UIColor whiteColor]
#define KKcolor_White_SearchViewBlack IS_NightMode?[UIColor colorWithRed:24.0 green:28.0 blue:31.0 alpha:1.0]:[UIColor whiteColor]
#define KKcolor_White_SearchBlack IS_NightMode?[UIColor colorWithRed:17.0 green:22.0 blue:25.0 alpha:1.0]:[UIColor whiteColor]

#define DeviceUUIDString [UIDevice currentDevice].identifierForVendor.UUIDString
#define fWidth_Current   ([[UIScreen mainScreen] bounds].size.width)
#define fHeight_Current  ([[UIScreen mainScreen] bounds].size.height)

//字体
#define FONT_SIZE [[[NSUserDefaults standardUserDefaults] objectForKey:@"FontSize"] intValue]


//配置
#define BaseURL @"http://114.55.253.199:8080"
//#define PageURL @"http://192.168.70.32:5555/app/aiya/api"
#define APIURL  [NSString stringWithFormat:@"%@/health/core/datasource/service/",BaseURL]
#define FileURL [NSString stringWithFormat:@"%@/fileServer/upload/file/",BaseURL]

#define NotificationLoginSuccess @"NotificationLoginSuccess"
#define NotificationLogoutSuccess @"NotificationLogoutSuccess"
#define NotificationCityChanged @"NotificationCityChanged"

#define RegexPhone @"^[13|15|17|18]{2}[0-9]{9}$"
#define CellOffset 100000

#define AppColor [UIColor colorWithHex:0x46C09A]

#define ESColor [UIColor colorWithRed:11/255.0 green:187/255.0 blue:255/255.0 alpha:1.0]
#define BackColor [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0]
#define BlueColor [UIColor colorWithRed:18/255.0 green:151/255.0 blue:255/255.0 alpha:1.0]
//淡灰色
#define TintColor [UIColor colorWithRed:239/255.0 green:239/255.0 blue:244/255.0 alpha:1.0]

#endif
